<template>
  <div>
    <p class="left" v-on:click="btn">right 模块</p>
  </div>
</template>

<script>
export default {
  setup() {},
  methods: {
    btn(e) {
      // console.log(this)
      e.target.style.backgroundColor = "red";
      e.target.innerHTML = "背景变为红色";
    },
  },
};
</script>

<style scoped>
.left {
  /* color: blue; */
  height: 200px;
  background-color: purple;
  color: white;
}
</style>